#include <my_header.h>

/* Usage:  */
void *threadFunc(void *args)
{
    pthread_exit((void *) 11);
    printf("this scene well not be print\n");
}
int main(void){                                  
    pthread_t tid;
    int ret =  pthread_create(&tid, NULL, threadFunc, NULL);
    THREAD_ERROR_CHECK(ret, "pthread_create");

    void *nump;
    int ret_join = pthread_join(tid, &nump);
    THREAD_ERROR_CHECK(ret_join,"pthread_join");
    // long类型
    printf("catch child thread by pthread_exit value = %ld \n", (long)nump);
    return 0;
}


